import React from 'react';

export default function SectionModule({ title, visible = true, children, content }) {
  if (!visible) return null;

  return (
    <div className="module-card">
      <div className="module-header">
        <h3 className="module-title">{title}</h3>
        <span className="module-badge">最新</span>
      </div>
      <div className="module-content">
        {content ? content() : children}
      </div>
    </div>
  );
}
